-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent password updates for SAML and LDAP users #9999
base: 4.19
Are you sure you want to change the base?
Prevent password updates for SAML and LDAP users #9999
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.19 #9999 +/- ##
============================================
- Coverage 15.10% 4.30% -10.81%
============================================
Files 5404 366 -5038
Lines 473502 29541 -443961
Branches 57733 5172 -52561
============================================
- Hits 71543 1272 -70271
+ Misses 393961 28125 -365836
+ Partials 7998 144 -7854
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@blueorangutan package |
@bernardodemarco a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11612 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
Description
Currently, CloudStack does not support dual authentication methods for SAML users. If their source is equal to
SAML
orSAMLDISABLED
, then they're not able to login with a username and password. However, when executing theupdateUser
API to update their password, the password is changed in the database, even though username/password authentication is unsupported for these users.Regarding LDAP users, password updates directly through CloudStack should also not be allowed. Therefore, this PR addresses these issues by providing a clear error message when SAML or LDAP users attempt to change their password via the
updateUser
API.Fixes #9933
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
SAMLDISABLED
user's password also triggers the error message.